<template>
    <div>
        <input v-model='val'><button @click='login'>login</button>
    </div>
</template>

<script>
export default {
  data() {
    return {
      val: '',
    };
  },
  methods: {
    login() {
      this.$router.push('/main');
    },
  },
};
</script>

<style lang="scss" scoped>

</style>
